<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <input type="text" v-model="msg">
    {{ msg }}
    <hr>
    <input type="radio" v-model="hobby" value="篮球">
    <input type="radio" v-model="hobby" value="足球">
    {{ hobby }}
    <hr>
    唱歌
    <input type="checkbox" v-model="arr" value="唱歌">
    跳舞
    <input type="checkbox" v-model="arr" value="跳舞">
    rap
    <input type="checkbox" v-model="arr" value="rap">
    {{ arr }}
    <hr>
    <input type="checkbox" v-model="isShow">
    {{ isShow }}
    {{ isShow?'你真漂亮':'你是个好人' }}
  </div>
 
  <script src="./vue.js"></script>
  <script>
    const vm = new Vue({
      el: '#app',
      data: {
        msg: '你好世界',
        hobby:'',
        arr: [],
        isShow: true
      }
    })
    console.log(vm)
  </script>
</body>
</html>